﻿--[[
   @brief    main_web logic for  web_browser
   @author   harleyxwang
   @version  1.0
   @date     2016-01-30
--]]

main_web_model =
{
    uin = 0;
    --游戏类别
    game_type = {
        LARGE_GAME = 1;   --大型游戏
        WEB_GAME = 2;     --网页游戏
        MOBILE_GAME = 3;  --手机游戏
        LARGE_GAME_DETAIL = 4;  --大型游戏详情
    };
    
    --页面跳转url前缀
    url_prefix = {
        "homepage", 
        "game", 
        "gift", 
        "privilege", 
        "personal_center", 
        "web", 
        "inner_web"
    };
    
    js_cmd = {
        JC_HOMEPAGE_JMP_GAMELIBRARY = 300500, --首页跳转到游戏库页面
        JC_HOMEPAGE_JMP_GIFTCENTRE = 300501,     --首页跳转到礼包中心页面
    };
    
    btn_index = {
        homepage = 0,
        large_game = 1,
        gift = 2,
        personal_center = 3,
        mobile_game = 4,
        web_game = 5,
    };
    
    -- 是否为网吧版本的标志
    is_netbar = -1;
    -- 语言版本
    language = "-1";
    
     --打开扩展面板标志
    is_extendboard_opened = false;
    
    extendboard_last_open_state = false;
    
    last_clicked_btn_index = 0;
    
    open_page = "";
    
    last_open_page = "";
    
    select_btn_index = 0;
    
    large_game_nav_param = {};
    
    gift_nav_param = {};
    
    personal_center_nav_param = {};
    
    last_url = "";

    is_extendboard_hide = false;

    game_base_info_list = nil;

    game_base_info_ready = false;

    -- 请求回包队列
    -- 缓存精选页游戏标签
    game_tags = nil;

    -- 请求回包
    get_boutique_rsp_info = nil;
    set_boutique_rsp_info = nil;

    get_boutique_rsp_info_queue = nil;
    set_boutique_rsp_info_queue = nil;

    page_load_param = {};

    init = function()
        main_web_model.game_base_info_list = banner_model.game_base_info_list;
    end;

    uninit = function() 
        main_web_model.game_base_info_list:delete();
    end;
};

-- main_web_model.init();
